<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\..\..\..\MonoDevelop.props" />
  <Import Project="$(ReferencesGtk)" />
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{0413DB7D-8B35-423F-9752-D75C9225E7DE}</ProjectGuid>
    <TargetFrameworkVersion>$(MDFrameworkVersion)</TargetFrameworkVersion>
    <OutputPath>..\..\..\..\build\AddIns\VersionControl</OutputPath>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugMac|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugGnome|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugWin32|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseWin32|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseMac|AnyCPU' " />
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseGnome|AnyCPU' " />
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Net.Http" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="AssemblyInfo.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitClient.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitVersionControl.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitRepository.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\Commands.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\PushDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitNodeBuilderExtension.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitService.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\UserInfoConflictDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\ConflictResolutionDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitConfigurationDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\EditBranchDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\EditRemoteDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\MergeDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\Stash.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitUtil.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\CredentialsDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitCredentials.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitOptionsPanelWidget.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitOptionsPanel.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\StashManagerDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\NewStashDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitCommitDialogExtensionWidget.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitCommitDialogExtension.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\UserGitConfigDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\GitSelectRevisionDialog.cs" />
    <Compile Include="AddinInfo.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\ProjectTemplateHandler.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\TfsSmartSubtransport.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.ConflictResolutionDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.CredentialsDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.EditBranchDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.EditRemoteDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.GitCommitDialogExtensionWidget.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.GitConfigurationDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.GitOptionsPanelWidget.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.MergeDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.NewStashDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.PushDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.StashManagerDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.UserGitConfigDialog.cs" />
    <Compile Include="Gui\MonoDevelop.VersionControl.Git.UserInfoConflictDialog.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\IGitCredentialsProvider.cs" />
    <Compile Include="MonoDevelop.VersionControl.Git\XwtCredentialsDialog.cs" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\..\..\core\MonoDevelop.Core\MonoDevelop.Core.csproj">
      <Project>{7525BB88-6142-4A26-93B9-A30C6983390A}</Project>
      <Name>MonoDevelop.Core</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\core\MonoDevelop.Ide\MonoDevelop.Ide.csproj">
      <Project>{27096E7F-C91C-4AC6-B289-6897A701DF21}</Project>
      <Name>MonoDevelop.Ide</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\MonoDevelop.VersionControl\MonoDevelop.VersionControl.csproj">
      <Project>{19DE0F35-D204-4FD8-A553-A19ECE05E24D}</Project>
      <Name>MonoDevelop.VersionControl</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\xwt\Xwt\Xwt.csproj">
      <Project>{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}</Project>
      <Name>Xwt</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\mono-addins\Mono.Addins\Mono.Addins.csproj">
      <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project>
      <Name>Mono.Addins</Name>
      <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="..\..\..\..\external\libgit2sharp\LibGit2Sharp\LibGit2Sharp.csproj">
      <Project>{EE6ED99F-CB12-4683-B055-D28FC7357A34}</Project>
      <Name>LibGit2Sharp</Name>
    </ProjectReference>
    <ProjectReference Include="..\..\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor.csproj">
      <Project>{F8F92AA4-A376-4679-A9D4-60E7B7FBF477}</Project>
      <Name>MonoDevelop.SourceEditor</Name>
      <Private>False</Private>
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="MonoDevelop.VersionControl.Git.addin.xml" />
  </ItemGroup>
  <ItemGroup Condition=" '$(Configuration)' == 'DebugWin32' OR '$(Configuration)' == 'ReleaseWin32' ">
    <EmbeddedResource Include="MonoDevelop.VersionControl.Git.Win32.addin.xml" />
  </ItemGroup>
  <ItemGroup>
    <None Include="GitIgnore.txt">
      <Gettext-ScanForTranslations>False</Gettext-ScanForTranslations>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Include="..\..\..\..\external\libgit-binary\libgit2.license.txt">
      <Link>libgit2.license.txt</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Include="..\..\..\..\external\libgit-binary\libssh2.license.txt">
      <Link>libssh2.license.txt</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <IncludeCopyLocal Include="LibGit2Sharp.dll" />
  </ItemGroup>
  <ItemGroup>
    <InternalsVisibleTo Include="MonoDevelop.VersionControl.Git.Tests" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Choose>
    <When Condition=" '$(Configuration)' == 'DebugMac' OR '$(Configuration)' == 'ReleaseMac' ">
      <ItemGroup>
        <NativeBinaries Include="..\..\..\..\external\libgit-binary\mac\*.dylib" />
      </ItemGroup>
    </When>
    <When Condition=" '$(Configuration)' == 'DebugWin32' OR '$(Configuration)' == 'ReleaseWin32' ">
      <ItemGroup>
        <NativeBinaries Include="..\..\..\..\external\libgit-binary\windows\*.*" />
      </ItemGroup>
    </When>
  </Choose>
  <Target Name="BeforeBuild">
    <Exec Command="bash build_libgit2.sh" Condition=" '$(Configuration)' == 'DebugGnome' OR '$(Configuration)' == 'ReleaseGnome' " />
  </Target>
  <Target Name="AfterBuild">
     <ItemGroup Condition=" '$(Configuration)' == 'DebugGnome' OR '$(Configuration)' == 'ReleaseGnome' ">
       <NativeBinaries Include="..\..\..\..\external\libgit2\build\*.so*" />
     </ItemGroup>
     <Copy SourceFiles="@(NativeBinaries)" DestinationFolder="$(OutputPath)\" SkipUnchangedFiles="true" />
  </Target>
</Project>
